import 'dart:convert';
/// code : 0
/// data : {"authToken":"","level":0,"userLevel":0,"agentLevel":0,"channelId":"","isNewRegister":true,"sensitivePhone":"","memberId":"","openid":"","avatarUrl":"","nickname":"","gender":1,"liveChat":1,"worldChannel":1,"circleIcon":"","squareIcon":"","identityAvatar":"","identityNickname":""}
/// msg : ""
/// serverTime : "0"

UserBeanData userBeanDataFromJson(String str) => UserBeanData.fromJson(json.decode(str));
String userBeanDataToJson(UserBeanData data) => json.encode(data.toJson());
class UserBeanData {
  UserBeanData({
      int? code, 
      Data? data, 
      String? msg, 
      String? serverTime,}){
    _code = code;
    _data = data;
    _msg = msg;
    _serverTime = serverTime;
}

  UserBeanData.fromJson(dynamic json) {
    _code = json['code'];
    _data = json['data'] != null ? Data.fromJson(json['data']) : null;
    _msg = json['msg'];
    _serverTime = json['serverTime'];
  }
  int? _code;
  Data? _data;
  String? _msg;
  String? _serverTime;
UserBeanData copyWith({  int? code,
  Data? data,
  String? msg,
  String? serverTime,
}) => UserBeanData(  code: code ?? _code,
  data: data ?? _data,
  msg: msg ?? _msg,
  serverTime: serverTime ?? _serverTime,
);
  int? get code => _code;
  Data? get data => _data;
  String? get msg => _msg;
  String? get serverTime => _serverTime;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['code'] = _code;
    if (_data != null) {
      map['data'] = _data?.toJson();
    }
    map['msg'] = _msg;
    map['serverTime'] = _serverTime;
    return map;
  }

}

/// authToken : ""
/// level : 0
/// userLevel : 0
/// agentLevel : 0
/// channelId : ""
/// isNewRegister : true
/// sensitivePhone : ""
/// memberId : ""
/// openid : ""
/// avatarUrl : ""
/// nickname : ""
/// gender : 1
/// liveChat : 1
/// worldChannel : 1
/// circleIcon : ""
/// squareIcon : ""
/// identityAvatar : ""
/// identityNickname : ""

Data dataFromJson(String str) => Data.fromJson(json.decode(str));
String dataToJson(Data data) => json.encode(data.toJson());
class Data {
  Data({
      String? authToken, 
      int? level, 
      int? userLevel, 
      int? agentLevel, 
      int? channelId,
      bool? isNewRegister, 
      String? sensitivePhone, 
      String? memberId, 
      String? openid, 
      String? avatarUrl, 
      String? nickname, 
      int? gender, 
      int? liveChat, 
      int? worldChannel, 
      String? circleIcon, 
      String? squareIcon, 
      String? identityAvatar, 
      String? identityNickname,}){
    _authToken = authToken;
    _level = level;
    _userLevel = userLevel;
    _agentLevel = agentLevel;
    _channelId = channelId;
    _isNewRegister = isNewRegister;
    _sensitivePhone = sensitivePhone;
    _memberId = memberId;
    _openid = openid;
    _avatarUrl = avatarUrl;
    _nickname = nickname;
    _gender = gender;
    _liveChat = liveChat;
    _worldChannel = worldChannel;
    _circleIcon = circleIcon;
    _squareIcon = squareIcon;
    _identityAvatar = identityAvatar;
    _identityNickname = identityNickname;
}

  Data.fromJson(dynamic json) {
    _authToken = json['authToken'];
    _level = json['level'];
    _userLevel = json['userLevel'];
    _agentLevel = json['agentLevel'];
    _channelId = json['channelId'];
    _isNewRegister = json['isNewRegister'];
    _sensitivePhone = json['sensitivePhone'];
    _memberId = json['memberId'];
    _openid = json['openid'];
    _avatarUrl = json['avatarUrl'];
    _nickname = json['nickname'];
    _gender = json['gender'];
    _liveChat = json['liveChat'];
    _worldChannel = json['worldChannel'];
    _circleIcon = json['circleIcon'];
    _squareIcon = json['squareIcon'];
    _identityAvatar = json['identityAvatar'];
    _identityNickname = json['identityNickname'];
  }
  String? _authToken;
  int? _level;
  int? _userLevel;
  int? _agentLevel;
  int? _channelId;
  bool? _isNewRegister;
  String? _sensitivePhone;
  String? _memberId;
  String? _openid;
  String? _avatarUrl;
  String? _nickname;
  int? _gender;
  int? _liveChat;
  int? _worldChannel;
  String? _circleIcon;
  String? _squareIcon;
  String? _identityAvatar;
  String? _identityNickname;
Data copyWith({  String? authToken,
  int? level,
  int? userLevel,
  int? agentLevel,
  int? channelId,
  bool? isNewRegister,
  String? sensitivePhone,
  String? memberId,
  String? openid,
  String? avatarUrl,
  String? nickname,
  int? gender,
  int? liveChat,
  int? worldChannel,
  String? circleIcon,
  String? squareIcon,
  String? identityAvatar,
  String? identityNickname,
}) => Data(  authToken: authToken ?? _authToken,
  level: level ?? _level,
  userLevel: userLevel ?? _userLevel,
  agentLevel: agentLevel ?? _agentLevel,
  channelId: channelId ?? _channelId,
  isNewRegister: isNewRegister ?? _isNewRegister,
  sensitivePhone: sensitivePhone ?? _sensitivePhone,
  memberId: memberId ?? _memberId,
  openid: openid ?? _openid,
  avatarUrl: avatarUrl ?? _avatarUrl,
  nickname: nickname ?? _nickname,
  gender: gender ?? _gender,
  liveChat: liveChat ?? _liveChat,
  worldChannel: worldChannel ?? _worldChannel,
  circleIcon: circleIcon ?? _circleIcon,
  squareIcon: squareIcon ?? _squareIcon,
  identityAvatar: identityAvatar ?? _identityAvatar,
  identityNickname: identityNickname ?? _identityNickname,
);
  String? get authToken => _authToken;
  int? get level => _level;
  int? get userLevel => _userLevel;
  int? get agentLevel => _agentLevel;
  int? get channelId => _channelId;
  bool? get isNewRegister => _isNewRegister;
  String? get sensitivePhone => _sensitivePhone;
  String? get memberId => _memberId;
  String? get openid => _openid;
  String? get avatarUrl => _avatarUrl;
  String? get nickname => _nickname;
  int? get gender => _gender;
  int? get liveChat => _liveChat;
  int? get worldChannel => _worldChannel;
  String? get circleIcon => _circleIcon;
  String? get squareIcon => _squareIcon;
  String? get identityAvatar => _identityAvatar;
  String? get identityNickname => _identityNickname;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['authToken'] = _authToken;
    map['level'] = _level;
    map['userLevel'] = _userLevel;
    map['agentLevel'] = _agentLevel;
    map['channelId'] = _channelId;
    map['isNewRegister'] = _isNewRegister;
    map['sensitivePhone'] = _sensitivePhone;
    map['memberId'] = _memberId;
    map['openid'] = _openid;
    map['avatarUrl'] = _avatarUrl;
    map['nickname'] = _nickname;
    map['gender'] = _gender;
    map['liveChat'] = _liveChat;
    map['worldChannel'] = _worldChannel;
    map['circleIcon'] = _circleIcon;
    map['squareIcon'] = _squareIcon;
    map['identityAvatar'] = _identityAvatar;
    map['identityNickname'] = _identityNickname;
    return map;
  }

}